import $api from "./server";

// 添加房型
export const addType = async (data) => {
  let res = await $api.post("/roomtype/add", data);
  return res.data;
};

// 查询所有房型
export const getAllType = async (data) => {
  let res = await $api.post("/roomtype/getAll", data);
  return res.data;
};

// 删除房型

export const delType = async (data) => {
  let res = await $api.post("/roomtype/del", data);
  return res.data;
};

// 修改房型

export const editType = async (data) => {
  let res = await $api.post("/roomtype/edit", data);
  return res.data;
};
